/*
 * 
 */
package megamek.common.actions;   
import megamek.common.Entity;
import megamek.common.IGame; 
import megamek.common.Targetable; 
import megamek.common.actions.RamAttackAction;  
import org.junit.After; 
import org.junit.Before; 
import org.junit.Test;  
import static org.easymock.EasyMock.*; 
import static org.junit.Assert.*;  

public class RamAttackActionTest {          
	RamAttackAction ramAtkActTest;                           
@Before         
public void setUp() throws Exception {                 
	ramAtkActTest = new RamAttackAction(1,2,3,null);         
}                  
/**
 * Test get target.
 *
 * @throws Exception the exception
 */
@Test         
public void testGetTarget() throws Exception {
	IGame gMock = createMock(IGame.class);
	Targetable gMockReturn = createMock(Targetable.class);   //Create Mock Object                               
	expect(gMock.getTarget(2,3)).andReturn(gMockReturn);                 
	replay(gMock);                                  
	Targetable actual = ramAtkActTest.getTarget(gMock);                 
	assertEquals(actual, gMockReturn);                 
	verify(gMock);                          }                  

	@After         
public void tearDown() throws Exception {                 
	ramAtkActTest = null;         }                    
} 